import { postJson,post,get,put} from '@/utils/request'

const getAllVehicle = (data) => {
  return postJson('/vehicle/getAllVehicle',data)
}
const createVehicle = (data) => {
  return postJson('/vehicle/getVehicle',data)
}
const updateVehicle = (data) => {
  return postJson('/vehicle/updateVehicle',data)
}
const delectVehicle = (data) => {
  return get(`/vehicle/delectVehicle${data}`,"")
}
export default{
  updateVehicle,
  delectVehicle,
  createVehicle,
  getAllVehicle
}